package com.duo.enums.errorcode;

import lombok.Getter;

/**
 * 套餐启用失败异常
 */
@SuppressWarnings(value = "all")
@Getter
public enum SetmealCode implements StatusCode {

    SETMEAL_ENABLE_FAILED_CODE(750, "套餐启用失败"),

    SETMEAL_NO_CATEGORY_ERROR(751, "套餐分类不存在"),

    SETMAEL_NAME_EXIST_ERROR(752, "套餐名称已存在"),

    SETMEAL_UPLOAD_IMAGE_ERROR(753, "图片上传失败"),

    SETMAEL_NOT_EXIST_ERROR(754, "套餐不存在"),

    SETMEAL_DISHES_NOT_NULL(755, "套餐无关联菜品");



    private int code;
    private String message;

    SetmealCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
